<?php
require_once 'tpl/use/block/styleCore.php';
require_once 'tpl/use/block/pagerBar.php';

function skin_ShowThreads( $fnum, $threads, $count, $start, $inc ) {
  styleHead();
  
  echo "<a href=\"spit.php\">To Fora</a>",
       "<a href=\"post.php?fnum=${fnum}\" >New Thread</a>";
  foreach( $threads as $thread ) {
    echo "<p><a href=\"spit.php?type=POST&tnum=${thread['id']}&start=0&inc=5\">${thread['name']} - ${thread['datum']}</a></p>",
         "<a href=\"gulp.php?type=THREAD&action[delete]=true&fnum=${thread['fid']}&tnum=${thread['id']}\">DELeTE</a>";
  }
  echo "<a href=\"post.php?fnum=${fnum}\" >New Thread</a>";
  
  pagerBar("spit.php?type=THREAD&", $fnum, $count, $start, $inc);
  
  styleFoot();
}
?>
